//
//  PressViewController.h
//  HengHuaSupervision
//
//  Created by XD-XY on 3/25/14.
//  Copyright (c) 2014 XD-XY. All rights reserved.
//

#import "XDBaseViewController.h"
#import "XDTools.h"
#import "XDHeader.h"
#import "ImageView.h"
#import <CoreLocation/CoreLocation.h>
#import "PressItem.h"

@interface PressViewController : XDBaseViewController<UITableViewDataSource,UITableViewDelegate,UITextFieldDelegate,UIScrollViewDelegate,CLLocationManagerDelegate,UIImagePickerControllerDelegate,UINavigationControllerDelegate>
{
    UITextField * marktextField; //备注
    NSString * markString ;// 备注
    UITextField * partTextField;//贴签部位中textfield
    UILabel * addressLabel; //显示地址的label
    UIButton * positionBtn; //定位按钮
    UIButton * upButton;
    UIButton * midButton;
    UIButton * footButton;
    UIButton * photoBtn; //照相按钮
    
    UIImagePickerController *imagePicker;
    BOOL isHeaderPhoto;  //区分是头像还是相册触发事件
    BOOL isPhotoHadEdit;    //相册是否编辑过
    
    CLLocationManager *theLocation;
    
    //缩略图相册的重用
    UIScrollView *myScrollView;
    NSMutableSet *recycledPages;
    NSMutableSet *visiblePages;
    NSMutableArray *bgArrary;//存放本地大图路径的数组
    
    NSString *location;
    NSString * location_gps;
    
    NSString * timeString;
}
@property (nonatomic,strong)UITableView * tableView;

@property (nonatomic, strong) NSMutableArray *myArray,* photoArray;
@property (nonatomic, assign) int contentOffset;
@property (nonatomic,assign)int photoCount; //照照片数量
@property (nonatomic,strong)NSString * titleString;

@property (nonatomic,strong)PressItem * pressItem;

//@property (nonatomic,strong) NSString *assertId;

- (void)tilePages;
- (ImageView *)dequeueRecycledPage;
- (BOOL)isDisplayingPageForIndex:(NSUInteger)index;
- (void)configurePage:(ImageView *)page forIndex:(NSUInteger)index;
- (id)initSmallView:(NSString *)urlStr;

@end
